Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/line-arc

Package Overview
Dependencies
Maintainers
6
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-arc

turf line-arc module

  • 6.5.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created

What is @turf/line-arc?

@turf/line-arc is a module from the Turf.js library that allows you to create circular arcs as LineString features. This can be useful for various geospatial applications, such as drawing curved paths or visualizing ranges.

What are @turf/line-arc's main functionalities?

Create a circular arc

This feature allows you to create a circular arc by specifying the center coordinates, radius, start angle, end angle, and the number of steps. The result is a LineString feature representing the arc.

const turf = require('@turf/turf');

const center = [0, 0];
const radius = 5;
const startAngle = 0;
const endAngle = 90;
const steps = 64;

const arc = turf.lineArc(center, radius, startAngle, endAngle, { steps });
console.log(arc);

Other packages similar to @turf/line-arc

Keywords

FAQs

Package last updated on 10 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc